from time import sleep

from validatecode_dec.rec_validate_code import dealImageAndSplit

if __name__ == '__main__':



    def collectdata(times, delay):
        '''
        采集数据
        :param times:
        :param delay:
        :return:
        '''
        for x in range(0, times):
            dealImageAndSplit('http://www.opene164.org.cn/Num_Sys/checkcode/markquery/gifcaptcha.html')
            sleep(delay)
            print(str(x + 1) + "/" + str(times))
